﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
    
namespace QuanLyPhongMach.Model
{
    [Table(Name="DonViThuoc")]
    public class CDonVi
    {
        #region Properties
        [Column(Name = "MaDonVi", IsPrimaryKey = true)]
        public int MaDonVi { get; set; }

        [Column(Name = "TenDonVi",CanBeNull=true, UpdateCheck=UpdateCheck.Never)]
        public string TenDonVi { get; set; }
        #endregion

        #region Constructor
        public CDonVi()
        { 
        }

        public CDonVi(string tendonvi)
        {
            this.TenDonVi = tendonvi;
        }
        #endregion
    }
}
